<?php

class Tipe extends \Eloquent {

	// Add your validation rules here
	public static $rules = [
		'kode' => 'required',
		'nama' => 'required'
	];

	// Don't forget to fill this array
	protected $fillable = ['kode','nama','keterangan','ref_id','user_id','action'];
	
	public function scopeActive($query) {
        return $query->where('is_active', '=', '1');
    }

}